package com.headwind.logistics.report.mapper;

import com.headwind.logistics.report.dto.CityOwnerdto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Administrator
 * @Date 2020/7/24 0024 17:20
 * @Version 1.0
 * @DESCRIPTION 填写类作用描述
 */
public interface CityMapper {
        /**
         * 查询货主所有信息
         * @param page 页码
         * @param rows 行数
         * @return
         */
        List<CityOwnerdto> queryAllCityOwnerdto(@Param("page")Integer page, @Param("rows")Integer rows);


        /**
         * 查询所有货主
         * @return
         */
        int cityOwnerdtoss();

        /**
         * 根据ID删除
         * @param id
         * @return
         */
        int deleteOwner(int id);

        /**
         * 新增货主信息
         * @param cityOwnerdto
         * @return
         */
        int addOwner(CityOwnerdto cityOwnerdto);

        /**
         * 修改货主信息
         * @param cityOwnerdto
         * @return
         */
        int updateOwner(CityOwnerdto cityOwnerdto);
}
